﻿{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">

                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$grade_data.grade_name%} 年级课程表修改汇总表（提示：全部修改完成才发布）</p>
                </div>
                    <div class="box-body">
					   <form action="index.php?a=syllabus.pub" method="post">
                       <div class="col-md-4 form-group">
                              <label for="inputPassword3" class="col-sm-3 control-label" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
                                   启用时间：
                              </label>
                              <div class="input-group col-sm-6" style="float:left; margin-right:8px;">
                                    <input type="text" class="form-control" value="" id="start" name="start_time">
									<div class="input-group-addon">
									     <i class="fa fa-calendar"></i>
									</div>
                              </div> 
                              <input type="hidden" name="grade_id" value="{%$grade_id%}">
                              <button type="submit" class="btn btn-primary">发 布</button>
                        </div>
						</form>
                        <div style="width:100%; overflow-x:scroll" >
                             <table class="table-bordered table-condensed" id="mytable" style="width:100%">					 
								  <tr>
                                         <td> </td>
										 {%foreach from=$week_lists key=key item=value%}
                                         <td colspan="{%$set_data.set_apm%}">{%$value%}</td>
										 {%/foreach%}
								  </tr>
								  <tr>
                                         <td> </td>
										 {%foreach from=$set_data.set_week key=key item=value%}
											{%foreach from=$section_lists key=k item=v%}
                                         <td>{%$v%}</td>
											{%/foreach%}
										 {%/foreach%}
								 </tr>	
								 {%foreach from=$syllabus key=key item=value%}
                                  <tr>
                                         <td>{%$key%}</td>
								  {%foreach from=$value key=k item=v%}
									{%foreach from=$v key=s item=t%}
										 <td>{%$t%}</td>
									{%/foreach%}
									
								  {%/foreach%}
								  </tr>
								 {%/foreach%}								
                         </table>  
                       </div>
				    </div><!--box-body -->
                    <div class="box-footer">

                    </div>

             </div><!--box box-default box-solid-->
        </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 {%include file="index.footer.tpl.php"%}<script>
  $(function() {
    $( "#start" ).datepicker({
	  changeYear: true,
	  changeMonth: true,
    });
  });
  </script>

